<?php
/**
 * @var $this Pinenut\Action
 * @var $listStatus int
 */

$statusNeutral = \Messenger\Relations::STATUS_NEUTRAL;
$statusFavorite = \Messenger\Relations::STATUS_FAVORITE;
$statusBlocked = \Messenger\Relations::STATUS_BLOCKED;

$unseenMessagesNeutral = $this->action('.buttonUnseenMessages', ['listStatus' => \Messenger\Relations::STATUS_NEUTRAL]);
$unseenMessagesFavorite = $this->action('.buttonUnseenMessages', ['listStatus' => \Messenger\Relations::STATUS_FAVORITE]);
?>
<ul>
    <li class="messenger-list-status <?php echo $listStatus == $statusNeutral ? 'active' : '' ?>">
        <a listStatus="<?php echo $statusNeutral; ?>" href="#">Received <?php echo $unseenMessagesNeutral; ?></a>
    </li>
    <li class="messenger-list-status <?php echo $listStatus == $statusFavorite ? 'active' : '' ?>">
        <a listStatus="<?php echo $statusFavorite; ?>" href="#">Favorite <?php echo $unseenMessagesFavorite; ?></a>
    </li>
    <li class="messenger-list-status <?php echo $listStatus == $statusBlocked ? 'active' : '' ?>">
        <a listStatus="<?php echo $statusBlocked; ?>" href="#">Blocked</a>
    </li>
</ul>

